package icu.qx.diagram.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.annotation.Excels;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sales {
    /**
     * 客户简称
     */
    @Excel(name = "客户简称")
    private String soClientName;
    /**
     * 产品编码
     */
    @Excel(name = "产品编码")
    private String soProduct;
    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String pdName;
    /**
     * 产品类型
     */
    @Excel(name = "产品类型")
    private String pdGoodType;
    /**
     * 产品型号
     */
    @Excel(name = "产品型号")
    private String pdSpecType;
    /**
     * 产品分类
     * */
    private Long pdGoodClass;
    @Excels({
            @Excel(name = "产品分类", targetAttr = "gcName", type = Excel.Type.EXPORT)
    })
    private GbsGoodClass gbsGoodClass;
    /**
     * 产品品牌
     */
//    @Excel(name = "产品品牌")
//    private String g;
    /**
     * 产品等级
     */
//    @Excel(name = "产品等级")
//    private String h;
    /**
     * 产品批次号
     */
    @Excel(name = "产品批次号")
    private String soBatch;
    /**
     * 发货仓库
     */
    @Excel(name = "发货仓库")
    private String wName;
    /**
     * 发货数量
     */
    @Excel(name = "发货数量")
    private String soOutNum;
    /**
     * 开始时间
     */
    private String beginCreateTime;
    /**
     * 结束时间
     */
    private String endCreateTime;
    /** 制单人 */
    private String creatorName;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("soClientName", getSoClientName())
                .append("soProduct", getSoProduct())
                .append("pdName", getPdName())
                .append("gdGoodType", getPdGoodType())
                .append("pdSpecType", getPdSpecType())
                .append("pdGoodClass", getPdGoodClass())
                .append("soBatch", getSoBatch())
                .append("wName", getWName())
                .append("soOutNum", getSoOutNum())
                .append("gbsGoodClass", getGbsGoodClass())
                .append("creatorName", getCreatorName())
                .toString();
    }
}
